home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update17.zoo / gcc-2.0 / diffs
Encoding:
Text File  |  1992-03-08  |  3.1 KB  |  128 lines

  1. *** ../gcc-diff-2.0/cccp.c    Fri Mar  6 15:18:06 1992
  2. --- cccp.c    Sun Mar  8 11:55:45 1992
  3. ***************
  4. *** 1503,1547 ****
  5.   
  6.     done_initializing = 1;
  7.   
  8. - #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
  9. -   for(i = 0; i < 4; i++)
  10. - #endif
  11.     { /* read the appropriate environment variable and if it exists
  12.          replace include_defaults with the listed path. */
  13.       char *epath = 0;
  14.   #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
  15. !     switch(i)
  16.       {
  17.         case 0:
  18. !     epath = getenv("GNUINC");
  19.       break;
  20.         case 1:
  21. !     epath = getenv("GNULIB");
  22.       break;
  23.         case 2:
  24. !     if(cplusplus) epath = getenv("GXXINC"); else epath = 0;
  25.       break;
  26. -     
  27.         case 3:
  28. ! #endif
  29. !     switch ((objc << 1) + cplusplus)
  30. !     {
  31. !       case 0:
  32. !         epath = getenv ("C_INCLUDE_PATH");
  33. !         break;
  34. !       case 1:
  35. !         epath = getenv ("C++_INCLUDE_PATH");
  36. !         break;
  37. !       case 2:
  38. !         epath = getenv ("OBJC_INCLUDE_PATH");
  39. !         break;
  40. !       case 3:
  41. !         epath = getenv ("OBJC++_INCLUDE_PATH");
  42. !         break;
  43. !     }
  44. ! #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
  45.       }
  46.   #endif
  47.       
  48. --- 1503,1553 ----
  49.   
  50.     done_initializing = 1;
  51.   
  52.     { /* read the appropriate environment variable and if it exists
  53.          replace include_defaults with the listed path. */
  54.       char *epath = 0;
  55.   #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
  56. !     char *e1 = getenv("GNUINC"), *e2 = getenv("GNULIB"),
  57. !          *e3 = getenv("GXXINC");
  58. !     if(cplusplus)
  59. !     {
  60. !     if(e3)
  61. !         epath = strcpy(alloca(strlen(e3)+1), e3);
  62. !     }
  63. !     if(e1)
  64. !     {
  65. !       if(epath)
  66. !     epath = strcat(
  67. !      strcat(strcpy(alloca(strlen(epath)+strlen(e1)+2), epath), ","),
  68. !                e1);
  69. !       else
  70. !     epath = strcpy(alloca(strlen(e1)+1), e1);
  71. !     }
  72. !     if(e2)
  73. !     {
  74. !       if(epath)
  75. !     epath = strcat(
  76. !      strcat(strcpy(alloca(strlen(epath)+strlen(e2)+2), epath), ","),
  77. !                e2);
  78. !       else
  79. !     epath = strcpy(alloca(strlen(e2)+1), e2);
  80. !     }
  81. ! #else
  82. !     switch ((objc << 1) + cplusplus)
  83.       {
  84.         case 0:
  85. !     epath = getenv ("C_INCLUDE_PATH");
  86.       break;
  87.         case 1:
  88. !     epath = getenv ("C++_INCLUDE_PATH");
  89.       break;
  90.         case 2:
  91. !     epath = getenv ("OBJC_INCLUDE_PATH");
  92.       break;
  93.         case 3:
  94. !     epath = getenv ("OBJC++_INCLUDE_PATH");
  95. !     break;
  96.       }
  97.   #endif
  98.       
  99. ***************
  100. *** 1579,1589 ****
  101.   
  102.         max_include_len = MAX (max_include_len, endp-startp+2);
  103.         include_defaults[num_dirs].fname = savestring (nstore);
  104. - #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
  105. -       include_defaults[num_dirs].cplusplus = (i > 1) ? cplusplus : 0;
  106. - #else
  107.         include_defaults[num_dirs].cplusplus = cplusplus;
  108. - #endif
  109.         num_dirs++;
  110.         if (*endp == '\0')
  111.           break;
  112. --- 1585,1591 ----
  113. *** cp-dem.c.orig    Sun Mar  8 12:08:33 1992
  114. --- cp-dem.c    Sun Mar  8 12:10:35 1992
  115. ***************
  116. *** 165,170 ****
  117. --- 165,171 ----
  118.     "compound", ",",        /* old */
  119.     "cm", ",",            /* ansi */
  120.     "nop", "",            /* old (for operator=) */
  121. +   "as", "=",            /* ansi */
  122.   };
  123.   
  124.   /* Beware: these aren't '\0' terminated. */
  125.